<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');

    $router->resource('/topics', 'TopicsController');

    $router->resource('ancai_courses', AncaiCoursesController::class);

    $router->get('get_ancai_catalogs', 'AncaiCatalogsController@getCatalogs')->name('ancai_catalogs.getCatalogs');
    $router->resource('ancai_catalogs', AncaiCatalogsController::class);

    $router->resource('ancai_articles', AncaiArticlesController::class);

    // 企业微信 会话内容存档 -- 拉取记录
    $router->resource('wx_work_chat_data_pull_logs', WxWorkChatDataPullLogsController::class)->except(['edit', 'update']);
    // 企业微信 会话内容存档 -- 会话内容
    $router->get('wx_work_chat_data/list', 'WxWorkChatDataController@list')->name('wx_work_chat_data.list');
    $router->resource('wx_work_chat_data', WxWorkChatDataController::class)->except(['edit', 'update']);
});
